@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/category/leimu_edit.js"]}){
<form id="leimuForm" lay-filter="leimuForm" class="layui-form model-form">
    <input name="id" type="hidden"/>
    <div class="layui-form-item">
        <label class="layui-form-label">类目名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="name" placeholder="请输入类目名称" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">类目级别<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <select id="level" name="level" lay-filter="test">
                <option value="1">一级类目</option>
                <option value="2">二级类目</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item" id="Uple" ><!--style="display: none"-->
        <label class="layui-form-label">上级类目<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <select name="uplevelId" class="layui-input" id="uplevelId">
            </select>
        </div>
    </div>
    <div class="layui-upload">
        <label class="layui-form-label">展示图<span style="color: red;">*</span></label>
        <button type="button" class="layui-btn" id="test1">上传图片</button>
        <img class="layui-upload-img" id="demo1" name="icon" style="height: 80px;width: 100px;border: 0px">
    </div>
    <br><br>
    <div class="layui-form-item text-right">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
    </div>
</form>
@}
